<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <xsl:template match="/">
        <html>
        <body>
        <h2>My CD Collection</h2>
        <table border="1">
        <tr bgcolor="#9acd32">
            <th align="left">Title</th>
            <th align="left">Artist</th>
            <th align="left">Price</th>
        </tr>

            <div> <h1><xsl:value-of select="catalog/cd/artist"/></h1></div>

        <xsl:for-each select="catalog/cd">
            <xsl:sort select="title"/>
            <xsl:if test="price &gt; 0">
            <tr>
                <td><xsl:value-of select="title" /></td>
                <xsl:choose>
                    <xsl:when test="price &gt; 5">
                        <td bgcolor="yellow"><xsl:value-of select="artist"/></td>
                    </xsl:when>
                    <xsl:otherwise>
                        <td bgcolor="red"><xsl:value-of select="artist"/></td>
                    </xsl:otherwise>
                </xsl:choose>
                <td><xsl:value-of select="price"/></td>
            </tr>
            </xsl:if>
        </xsl:for-each>
        </table>
        </body>
        </html>

    </xsl:template>

</xsl:stylesheet>